<?php
/**
 * 掌上客小程序商城模块小程序接口定义
 *
 * @author zskcms
 * @url 
 */
defined('IN_IA') or exit('Access Denied');
ini_set("display_errors", "OFF"); 
!defined('ZSK') && define('ZSK',IA_ROOT.'/addons/zsk_browser');
!defined('CORE_APP') && define('CORE_APP',ZSK.'/core/web');
!defined('CORE_MOB') && define('CORE_MOB',ZSK.'/core/mob');
!defined('CORE_APP') && define('CORE_APP',ZSK.'/core/wxapp');
if (!function_exists('Model')) {
	function Model($name) {
		$model = new ZskxdswModel($name);
		return $model;
	} 
} 
require_once ZSK."/libs/model.class.php"; 
class Zsk_browserModuleWxapp extends WeModuleWxapp {
	 
	public function doPageHome() {
		global $_W;
	 	$uniacid=intval($_W['uniacid']);
		$model=Model("home");
		$home=$model->where("uniacid=$uniacid")->get("*");
		$home['url']=urldecode($home['url']); 
		echo json_encode($home);
		 
	}
}